// 评论请求模块
import request from '../uilts/request'
// 请求获取文章评论列表数据
export const getArticleComment = params => {
        return request({
            method: 'GET',
            url: '/v1_0/comments',
            params
        })
    }
    // 对文章评论点赞
export const addCommentLike = target => {
        return request({
            method: 'POST',
            url: '/v1_0/comment/likings',
            target
        })
    }
    // 对文章评论取消点赞
export const deleteCommentLike = target => {
    return request({
        method: 'DELETE',
        url: ` /v1_0/comment/likings/${target}`
    })
}